<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>Kinect Body Tracking: shahqaan.kinect.Skeletons Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Kinect Body Tracking
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classshahqaan_1_1kinect_1_1_skeletons.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classshahqaan_1_1kinect_1_1_skeletons-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">shahqaan.kinect.Skeletons Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Inherited by <a class="el" href="classshahqaan_1_1kinect_1_1_extended_skeletons.html">shahqaan.kinect.ExtendedSkeletons</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><b>CalibrationCompleteObserver</b></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><b>LostUserObserver</b></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><b>NewUserObserver</b></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><b>PoseDetectedObserver</b></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afe757feb53a5d7113f3cd8ed40ce80f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afe757feb53a5d7113f3cd8ed40ce80f0"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getXRes</b> ()</td></tr>
<tr class="separator:afe757feb53a5d7113f3cd8ed40ce80f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c2e522d720527858a321f3231b72d61"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c2e522d720527858a321f3231b72d61"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getYRes</b> ()</td></tr>
<tr class="separator:a1c2e522d720527858a321f3231b72d61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad92c8f39a7d775859eb3dab7478961cb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshahqaan_1_1kinect_1_1_skeletons.html#ad92c8f39a7d775859eb3dab7478961cb">update</a> ()</td></tr>
<tr class="separator:ad92c8f39a7d775859eb3dab7478961cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ade9c15dc11059dbdd2edc45cb55d0a75"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade9c15dc11059dbdd2edc45cb55d0a75"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateJoint</b> (HashMap&lt; SkeletonJoint, SkeletonJointPosition &gt; skel, int userID, SkeletonJoint joint)</td></tr>
<tr class="separator:ade9c15dc11059dbdd2edc45cb55d0a75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b394b6b1715272e24d2397408be88a2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b394b6b1715272e24d2397408be88a2"></a>
Point3D&#160;</td><td class="memItemRight" valign="bottom"><b>getJointPos</b> (HashMap&lt; SkeletonJoint, SkeletonJointPosition &gt; skel, SkeletonJoint j)</td></tr>
<tr class="separator:a7b394b6b1715272e24d2397408be88a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:afe9c6555c5bbf599b071afd7ea3ed338"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afe9c6555c5bbf599b071afd7ea3ed338"></a>
UserGenerator&#160;</td><td class="memItemRight" valign="bottom"><b>userGen</b></td></tr>
<tr class="separator:afe9c6555c5bbf599b071afd7ea3ed338"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9425a300bfff51142252d8900fe9c9f1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9425a300bfff51142252d8900fe9c9f1"></a>
DepthGenerator&#160;</td><td class="memItemRight" valign="bottom"><b>depthGen</b></td></tr>
<tr class="separator:a9425a300bfff51142252d8900fe9c9f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af94d8bd12e822b0bbc2ff8fbd04ecf24"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af94d8bd12e822b0bbc2ff8fbd04ecf24"></a>
SkeletonCapability&#160;</td><td class="memItemRight" valign="bottom"><b>skelCap</b></td></tr>
<tr class="separator:af94d8bd12e822b0bbc2ff8fbd04ecf24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8be3b58ddf96e05f8fbde115bb8d71b9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8be3b58ddf96e05f8fbde115bb8d71b9"></a>
PoseDetectionCapability&#160;</td><td class="memItemRight" valign="bottom"><b>poseDetectionCap</b></td></tr>
<tr class="separator:a8be3b58ddf96e05f8fbde115bb8d71b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e9c355495cf08a6e95ea91a8344417f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0e9c355495cf08a6e95ea91a8344417f"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>calibPoseName</b> = null</td></tr>
<tr class="separator:a0e9c355495cf08a6e95ea91a8344417f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04aa09e2e831564070bf16ab6810565c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a04aa09e2e831564070bf16ab6810565c"></a>
HashMap&lt; Integer, HashMap<br class="typebreak"/>
&lt; SkeletonJoint, <br class="typebreak"/>
SkeletonJointPosition &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>userSkels</b></td></tr>
<tr class="separator:a04aa09e2e831564070bf16ab6810565c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c5198f66628557a81aaf4e8512c6513"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c5198f66628557a81aaf4e8512c6513"></a>
Context&#160;</td><td class="memItemRight" valign="bottom"><b>context</b></td></tr>
<tr class="separator:a4c5198f66628557a81aaf4e8512c6513"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2a2f3ae233ec89a530fb2cbc8653509"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa2a2f3ae233ec89a530fb2cbc8653509"></a>
DepthMetaData&#160;</td><td class="memItemRight" valign="bottom"><b>depthMD</b></td></tr>
<tr class="separator:aa2a2f3ae233ec89a530fb2cbc8653509"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fcd7aeb57c406939501f27a60e892d7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9fcd7aeb57c406939501f27a60e892d7"></a>
boolean&#160;</td><td class="memItemRight" valign="bottom"><b>isRunning</b></td></tr>
<tr class="separator:a9fcd7aeb57c406939501f27a60e892d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_skeletons_8java_source.html#l00026">26</a> of file <a class="el" href="_skeletons_8java_source.html">Skeletons.java</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ad92c8f39a7d775859eb3dab7478961cb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void shahqaan.kinect.Skeletons.update </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Update the skeleton of each user Called from run() in TrackerPanel </p>

<p>Definition at line <a class="el" href="_skeletons_8java_source.html#l00117">117</a> of file <a class="el" href="_skeletons_8java_source.html">Skeletons.java</a>.</p>
<div class="fragment"><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;                         {</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            context.waitAnyUpdateAll();</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        } <span class="keywordflow">catch</span> (StatusException e) {</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            System.out.println(e);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            System.exit(1);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        }</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            <span class="keywordtype">int</span>[] userIDs = userGen.getUsers();   <span class="comment">// there may be many users in the scene</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; userIDs.length; ++i) {</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                <span class="keywordtype">int</span> userID = userIDs[i];</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                <span class="keywordflow">if</span> (skelCap.isSkeletonCalibrating(userID)) {</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                    <span class="keywordflow">continue</span>;    <span class="comment">// test to avoid occassional crashes with isSkeletonTracking()</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                }</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                <span class="keywordflow">if</span> (skelCap.isSkeletonTracking(userID)) {</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                    updateJoints(userID);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;                }</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;            }</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        } <span class="keywordflow">catch</span> (StatusException e) {</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;            System.out.println(e);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    }  </div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Documents/Projects/FYP - Computer Generated Art/Development/kinect-body-language-analysis/src/shahqaan/kinect/<a class="el" href="_skeletons_8java_source.html">Skeletons.java</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>shahqaan</b></li><li class="navelem"><b>kinect</b></li><li class="navelem"><a class="el" href="classshahqaan_1_1kinect_1_1_skeletons.html">Skeletons</a></li>
    <li class="footer">Generated on Sun Mar 31 2013 01:32:11 for Kinect Body Tracking by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li>
  </ul>
</div>
</body>
</html>
